cmake_minimum_required(VERSION 3.1)

project(opencv_example_project)

set(OpenCV_DIR "/home/book/opencv-4.5.5/build")

find_package(OpenCV REQUIRED)
message(STATUS "OpenCV library status:")
message(STATUS "    config: ${OpenCV_DIR}")
message(STATUS "    version: ${OpenCV_VERSION}")
message(STATUS "    libraries: ${OpenCV_LIBS}")
message(STATUS "    include path: ${OpenCV_INCLUDE_DIRS}")

add_executable(demo my_camera.cpp)

target_link_libraries(demo PRIVATE ${OpenCV_LIBS} pthread)
